#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>

void* run_thread(void* args)
{
  printf("im new thread my tid is:%lu\n",pthread_self());
  printf("hello im new thread\n");
  sleep(3);
}


int main()
{
  pthread_t tid;
  pthread_create(&tid ,NULL ,run_thread ,(void*)"thread 1");
  printf("waiting ...\n");
  pthread_detach(tid);
  sleep(3);
  return 0;
}
